<?php

namespace App\Http\Controllers;

use App\Events\OrderPayed;
use App\Services\OrderService;

class TestController extends Controller
{
    public function index()
    {
//        $res = BobingCouponJob::dispatch('51','oojES5XdINUq0f3mMrIAdadTNJms')->onConnection('redis')->onQueue('bo_bing');
//        dd($res);
        $service = new OrderService(1,'tom');
        event(new OrderPayed($service));
        return ['code'=>0,'msg'=>'ok','data'=>[]];
    }
}
